const Koa = require("koa");

const app = new Koa();

app.use((ctx, next) => {
  // console.log(ctx.request);
  // console.log(ctx.response);
  ctx.response.body = "Hello World";
});

app.listen(8000, () => {
  console.log("Koa初体验服务器启动成功");
});
